projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
435f143
)
x11: Set actions on drag
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 15 Jul 2018 20:50:06 +0000
(16:50 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 15 Jul 2018 20:50:06 +0000
(16:50 -0400)
We should pass the actions to the newly created
drag object in drag_begin.
gdk/x11/gdkdrag-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkdrag-x11.c
b/gdk/x11/gdkdrag-x11.c
index b04b77c596cae5282c7332f0b410dae802ad93ef..6e72ba890cf3f4aae968221d4c96387b1235a18c 100644
(file)
--- a/
gdk/x11/gdkdrag-x11.c
+++ b/
gdk/x11/gdkdrag-x11.c
@@
-2085,9
+2085,10
@@
_gdk_x11_surface_drag_begin (GdkSurface *surface,
ipc_surface = gdk_surface_new_popup (display, &(GdkRectangle) { -99, -99, 1, 1 });
drag = (GdkDrag *) g_object_new (GDK_TYPE_X11_DRAG,
+ "surface", ipc_surface,
"device", device,
"content", content,
- "
surface", ipc_surface
,
+ "
actions", actions
,
NULL);
x11_drag = GDK_X11_DRAG (drag);